<%@ page language="java" contentType="text/html; charset=UTF-8"	 pageEncoding="UTF-8"%>
<%@ include file="../include/laypublic.jsp"%>
<!DOCTYPE html>
<html>
<head>
  <title>决策详情</title>
</head>
<style>
	.layui-btn-red {
	    border: 1px dashed #FF0000;
	    background-color: #fff;
	    color: #555;
	}
	.layui-btn-red:hover{border-color:#FF0000;color:#333}
	.layui-legend{
		background-color:#5fb878;
		font-size:15px !important;
		width:140px;
	}
	.layui-form-item {
	    margin-bottom: 5px;
	    clear: both;
	    *zoom: 1;
	}
	.fieldset{
		margin-top: 5px;
		margin-bottom: 0px
	}
	.layui-form-label{width: 180px;}
	.right{
		float:right;
	}
	.width106{
		width:106px;
	}
	.width98{
		width:98px;
	}
	.width60{
		width:60px;
	}
</style>
<body>
<div class="layui-fluid">
    <div class="layui-card">
	    <div class="layui-tab-item layui-show">
			<div class="layui-card">
	          <div class="layui-card-body">
	            <div class="layui-tab layui-tab-brief" lay-filter="component-tabs-brief">
	              <ul class="layui-tab-title">
	                <li class="layui-this"><B>表单信息</B></li>
	                <li><B>审批信息</B></li>
	              </ul>
	              <div class="layui-tab-content">
	                <div class="layui-tab-item layui-show">
						<!-- start 业务表单数据显示  put yourself data here -->
						<form class="layui-form" id="addInfo_form">
						<fieldset class="layui-elem-field layui-field-title fieldset"  id="baseInfo">
						  <legend class="layui-btn layui-legend" style="text-align:left;cursor:default;">项目基础信息  ></legend>
						  <div style="margin-top:20px">
						  	<div class="layui-form-item">
						  		<div class="layui-inline">
							      	<label class="layui-form-label">项目名称</label>
							      	<div class="layui-input-inline">
							        	<input type="text" name="proName" value="${deciPro.proName}" style="border:0px;width:220px" readonly="readonly" class="layui-input">
							      	</div>
							    </div>
							    <div class="layui-inline">
							    	<label class="layui-form-label">项目类型</label>
						      		<div class="layui-input-inline">
								        <input type="text" value="PPP项目" style="border:0px;" readonly="readonly" class="layui-input">
						      		</div>
							    </div>
						  		<div class="layui-inline">
							      	<label class="layui-form-label">项目编号</label>
							      	<div class="layui-input-inline">
							        	<input type="text" name="proCode" value="${deciPro.proCode}" style="border:0px;" readonly="readonly" class="layui-input">
							      	</div>
							    </div>
						    </div>
						  	<div class="layui-form-item">
						  		<div class="layui-inline">
							      	<label class="layui-form-label">申请公司</label>
							      	<div class="layui-input-inline">
						        		<input type="text" name="orgName" value="${deciPro.orgName }" style="border:0px;width:220px" readonly="readonly" class="layui-input">
							      	</div>
							    </div>
							    <div class="layui-inline">
							    	<label class="layui-form-label">申请部门</label>
						      		<div class="layui-input-inline">
						        		<input type="text" name="orgName" value="${deciPro.deptName }" style="border:0px;" readonly="readonly" class="layui-input">
						      		</div>
							    </div>
							    <div class="layui-inline">
							    	<label class="layui-form-label">申请人</label>
						      		<div class="layui-input-inline">
						        		<input type="text" name="staffName" value="${deciPro.staffName }" readonly="readonly" style="border:0px" class="layui-input">
						      		</div>
							    </div>
						    </div>
						  	<div class="layui-form-item">
						  		<div class="layui-inline">
							    	<label class="layui-form-label">项目城市</label>
						      		<div class="layui-input-inline">
						        		<input type="text" name="sgCityName" value="${deciPro.sgCityName }" style="border:0px;" readonly="readonly" class="layui-input">
						      		</div>
							    </div>
						  		<div class="layui-inline">
							      	<label class="layui-form-label">一般公共预算收入（亿元）</label>
							      	<div class="layui-input-inline">
							        	<input type="text" name="pubIncome" value="${deciPro.pubIncome}" readonly="readonly" style="border:0px" class="layui-input">
							      	</div>
							    </div>
							    <div class="layui-inline">
							    	<label class="layui-form-label">年度PPP项目占一般公共预算支出比例比(%)</label>
						      		<div class="layui-input-inline">
							        	<input type="text" name="pppPercent" value="${deciPro.pppPercent}" style="border:0px;" readonly="readonly" class="layui-input">
							       	</div>
							    </div>
						    </div>
						  	<div class="layui-form-item">
							    <div class="layui-inline">
							    	<label class="layui-form-label">营销经理</label>
						      		<div class="layui-input-inline">
							        	<input type="text" name="hrStaffName" value="${deciPro.hrStaffName}" style="border:0px;" readonly="readonly" class="layui-input">
						      		</div>
							    </div>
						  		<div class="layui-inline">
							    	<label class="layui-form-label">入库情况</label>
						      		<div class="layui-input-inline">
						      			<c:if test="${deciPro.isInStore == '1' }"><input type="text" name="hrStaffName" value="已入库" style="border:0px;" readonly="readonly" class="layui-input"></c:if>
						      			<c:if test="${deciPro.isInStore == '0' }"><input type="text" name="hrStaffName" value="未入库" style="border:0px;color:red" readonly="readonly" class="layui-input"></c:if>
						      		</div>
							    </div>
							    <div class="layui-inline">
							    	<label class="layui-form-label">意向申请会议日期</label>
						      		<div class="layui-input-inline">
							      		<input type="text" name="meetingDate" value="<fmt:formatDate value="${deciPro.meetingDate }" pattern="yyyy-MM-dd"/>" style="border:0px;" readonly="readonly" class="layui-input">
						      		</div>
							    </div>
				    		</div>
						  	<div class="layui-form-item">
						  		<div class="layui-inline">
							      	<label class="layui-form-label">项目简介</label>
							      	<div class="layui-input-inline">
							        	<textarea name="proRemarks" class="layui-textarea" readonly="readonly" style="width:899px;height:90px;">${deciPro.proRemarks}</textarea>
							      	</div>
					    		</div>
				    		</div>
				  		</div>
					</fieldset>
					<fieldset class="layui-elem-field layui-field-title fieldset"  id="investInfo">
				  		<legend class="layui-btn layui-legend" style="text-align:left;cursor:default;">决策投标信息 ></legend>
					  	<div style="margin-top:20px">
					  		<div class="layui-form-item">
							    <div class="layui-inline">
							    	<label class="layui-form-label">投标保证金（万元）</label>
						      		<div class="layui-input-inline">
							      		<input type="text" name="bondMoney" value="${deciPro.bondMoney}" style="border:0px;" readonly="readonly" class="layui-input">
						      		</div>
							    </div>
							    <div class="layui-inline">
							    	<label class="layui-form-label">投标保证金截止日</label>
						      		<div class="layui-input-inline">
							      		<input type="text" name="bondEndDate" value="<fmt:formatDate value="${deciPro.bondEndDate }" pattern="yyyy-MM-dd"/>" style="border:0px;" readonly="readonly" class="layui-input">
						      		</div>
							    </div>
							    <div class="layui-inline">
							    	<label class="layui-form-label">投标截止日期</label>
						      		<div class="layui-input-inline">
							      		<input type="text" name="bidEndDate" value="<fmt:formatDate value="${deciPro.bidEndDate }" pattern="yyyy-MM-dd"/>" style="border:0px;" readonly="readonly" class="layui-input">
						      		</div>
							    </div>
							</div>
					  	</div>
					</fieldset>
					<fieldset class="layui-elem-field layui-field-title fieldset"  id="careerInfo">
				  		<legend class="layui-btn layui-legend" style="text-align:left;cursor:default;">项目合作方  ></legend>
					  	<div style="margin-top:20px">
					  		<div class="layui-form-item">
							    <div class="layui-inline">
							    	<label class="layui-form-label">项目渠道</label>
						      		<div class="layui-input-inline">
										<input type="text" name="fromChannel" value="${deciPro.fromChannel == '1' ? '自行获取':'居间合作'}" style="border:0px;" readonly="readonly" class="layui-input">
						      		</div>
							    </div>
							    <div class="layui-inline">
							    	<label class="layui-form-label">实施机构</label>
						      		<div class="layui-input-inline">
							      		<input type="text" name="carryOrg" value="${deciPro.carryOrg}" style="border:0px;width:220px" readonly="readonly" class="layui-input">
						      		</div>
							    </div>
							    <div class="layui-inline">
							    	<label class="layui-form-label">招标代理机构</label>
						      		<div class="layui-input-inline">
							      		<input type="text" name="bidAgent" value="${deciPro.bidAgent}" style="border:0px;width:220px" readonly="readonly" class="layui-input">
						      		</div>
							    </div>
						    </div>
						    <div class="layui-form-item">
						    	<div class="layui-inline">
							    	<label class="layui-form-label">预计居间人费用（万元）</label>
						      		<div class="layui-input-inline">
							      		<input type="text" name="linkPowerCost" value="${deciPro.linkPowerCost}" style="border:0px;" readonly="readonly"  class="layui-input">
						      		</div>
							    </div>
							    <div class="layui-inline">
							    	<label class="layui-form-label">占建安费用比例（%）</label>
						      		<div class="layui-input-inline">
							      		<input type="text" name="ofCaePercent" value="${deciPro.ofCaePercent}" style="border:0px;" readonly="readonly"  class="layui-input">
						      		</div>
							    </div>
						    	<c:if test="${deciPro.fromChannel == '2'}">
								    <div class="layui-inline">
								    	<label class="layui-form-label">居间方</label>
							      		<div class="layui-input-inline">
								      		<input type="text" name="linkPower" value="${deciPro.linkPower}" style="border:0px;width:220px" readonly="readonly" class="layui-input">
							      		</div>
								    </div>
						    	</c:if>
						    </div>
					  	</div>
					  	<fieldset class="layui-elem-field layui-field-title fieldset"  id="customerFile">
					  		<legend style="margin-left:40px;font-size:15px;font-weight:bold;">联合体单位  ></legend>
						  	<div style="margin-top:20px">
						  	<c:forEach items="${deciPro.deciProCoopVos }" var="coop" varStatus="status">
						  		<div class="layui-form-item">
						  			<div class="layui-inline width106">
								    	<p class="right">单位<label>${status.count }</label>：</p>
								    </div>
								    <div class="layui-inline">
								    	<label class="layui-form-label width60">单位名称</label>
							      		<div class="layui-input-inline">
								      		<input type="text" value="${coop.coopName }" style="border:0px;width:220px" readonly="readonly" class="layui-input">
							      		</div>
								    </div>
								    <div class="layui-inline">
								      	<label class="layui-form-label">单位作用</label>
								      	<div class="layui-input-inline" id="coopEffectSelect">
								      		<input type="text" value="${coop.coopEffectName }" style="border:0px;" readonly="readonly" class="layui-input">
								      	</div>
								    </div>
							    </div>
						    </c:forEach>
							</div>
					  	</fieldset>
						</fieldset>
						<fieldset class="layui-elem-field layui-field-title fieldset" id="loanInfo">
					  		<legend class="layui-btn layui-legend" style="text-align:left;cursor:default;">项目子项  ></legend>
						  	<div style="margin-top:20px">
						  		<div class="layui-form-item">
								    <div class="layui-inline">
								    	<label class="layui-form-label">合作周期（年）</label>
							      		<div class="layui-input-inline">
								      		<input type="text" name="workYears" value="${deciPro.workYears }" style="border:0px;" readonly="readonly" class="layui-input">
							      		</div>
								    </div>
								    <div class="layui-inline">
								      	<label class="layui-form-label">建设周期（年）</label>
								      	<div class="layui-input-inline">
								        	<input type="text" name="buildYears" value="${deciPro.buildYears }" readonly="readonly" style="border:0px" class="layui-input">
								      	</div>
								    </div>
								    <div class="layui-inline">
								      	<label class="layui-form-label">运营周期（年）</label>
								      	<div class="layui-input-inline">
								        	<input type="text" name="omYears" value="${deciPro.omYears }" readonly="readonly" style="border:0px" class="layui-input">
								      	</div>
								    </div>
							    </div>
							    <fieldset class="layui-elem-field layui-field-title fieldset"  id="customerFile">
							  		<legend style="margin-left:40px;font-size:15px;font-weight:bold;">项目子项  ></legend>
								  	<div style="margin-top:20px">
								  		<c:forEach items="${deciPro.deciProSubs }" var="sub" varStatus="status">
									  		<div class="layui-form-item">
									    		<div class="layui-inline width106">
											    	<p class="right">子项<label>${sub.orderIdx }</label>：</p>
											    </div>
											    <div class="layui-inline">
											    	<label class="layui-form-label width60">子项名称</label>
										      		<div class="layui-input-inline">
											      		<input type="text" name="subName" value="${sub.subName }" readonly="readonly" style="border:0px" class="layui-input">
										      		</div>
											    </div>
											    <div class="layui-inline">
											      	<label class="layui-form-label width98">合作周期（年）</label>
											      	<div class="layui-input-inline" style="width:98px;">
											        	<input type="text" name="subWorkYears" value="${sub.workYears }" readonly="readonly" style="border:0px" class="layui-input">
											      	</div>
											    </div>
											    <div class="layui-inline">
											      	<label class="layui-form-label width98">建设周期（年）</label>
											      	<div class="layui-input-inline" style="width:98px;">
											        	<input type="text" name="subBuildYears" value="${sub.buildYears }" readonly="readonly" style="border:0px" class="layui-input">
											      	</div>
											    </div>
											    <div class="layui-inline">
											      	<label class="layui-form-label width98">运营周期（年）</label>
											      	<div class="layui-input-inline" style="width:98px;">
											        	<input type="text" name="subOmYears" value="${sub.omYears }" readonly="readonly" style="border:0px" class="layui-input">
											      	</div>
											    </div>
							    			</div>
							    		</c:forEach>
								  	</div>
								</fieldset>
							</div>
						</fieldset>
						<fieldset class="layui-elem-field layui-field-title fieldset" id="houseInfo">
					  		<legend class="layui-btn layui-legend" style="text-align:left;cursor:default;">项目资金信息  ></legend>
						  	<div style="margin-top:20px">
						  		<div class="layui-form-item">
								    <div class="layui-inline">
								    	<label class="layui-form-label">资本金数额（万元）</label>
							      		<div class="layui-input-inline">
								      		<input type="text" name="capitalFund" value="${deciPro.capitalFund }" readonly="readonly" style="border:0px" class="layui-input">
							      		</div>
								    </div>
								    <div class="layui-inline">
								      	<label class="layui-form-label">资本金比例（%）</label>
								      	<div class="layui-input-inline">
								        	<input type="text" name="capitalPercent" value="${deciPro.capitalPercent }" readonly="readonly" style="border:0px" class="layui-input">
								      	</div>
								    </div>
								    <div class="layui-inline">
								      	<label class="layui-form-label">我方股权出资金额（万元）</label>
								      	<div class="layui-input-inline">
								        	<input type="text" name="stockFund" value="${deciPro.stockFund }" readonly="readonly" style="border:0px" class="layui-input">
								      	</div>
								    </div>
							    </div>
							    <div class="layui-form-item">
								    <div class="layui-inline">
								    	<label class="layui-form-label">我方股权比例（%）</label>
							      		<div class="layui-input-inline">
								      		<input type="text" name="stockPercent" value="${deciPro.stockPercent }" readonly="readonly" style="border:0px" class="layui-input">
							      		</div>
								    </div>
								    <div class="layui-inline">
								      	<label class="layui-form-label">总投资额（万元）</label>
								      	<div class="layui-input-inline">
								        	<input type="text" name="sumAmount" value="${deciPro.sumAmount }" readonly="readonly" style="border:0px" class="layui-input">
								      	</div>
								    </div>
								    <div class="layui-inline">
								      	<label class="layui-form-label">建安工程总费用（万元）</label>
								      	<div class="layui-input-inline">
								        	<input type="text" name="sumCae" value="${deciPro.sumCae }" readonly="readonly" style="border:0px" class="layui-input">
								      	</div>
								    </div>
							    </div>
							    <fieldset class="layui-elem-field layui-field-title fieldset"  id="creditInfo">
					  				<legend style="margin-left:40px;font-size:15px;font-weight:bold;">投资构成  ></legend>
						  			<div style="margin-top:20px">
						  				<div class="layui-form-item">
										    <div class="layui-inline">
										    	<label class="layui-form-label">建安工程费（万元）</label>
									      		<div class="layui-input-inline">
										      		<input type="text" name="costCae" value="${deciPro.costCae }" readonly="readonly" style="border:0px" class="layui-input">
									      		</div>
										    </div>
										    <div class="layui-inline">
										      	<label class="layui-form-label">设备购置工程费（万元）</label>
										      	<div class="layui-input-inline">
										        	<input type="text" name="deviceCost" value="${deciPro.deviceCost }" readonly="readonly" style="border:0px" class="layui-input">
										      	</div>
										    </div>
										    <div class="layui-inline">
										      	<label class="layui-form-label">预备费（万元）</label>
										      	<div class="layui-input-inline">
										        	<input type="text" name="inReadyCost" value="${deciPro.inReadyCost }" readonly="readonly" style="border:0px" class="layui-input">
										      	</div>
										    </div>
									    </div>
						  				<div class="layui-form-item">
										    <div class="layui-inline">
										    	<label class="layui-form-label">建设期利息（万元）</label>
									      		<div class="layui-input-inline">
										      		<input type="text" name="periodInterest" value="${deciPro.periodInterest }" readonly="readonly" style="border:0px" class="layui-input">
									      		</div>
										    </div>
										    <div class="layui-inline">
										      	<label class="layui-form-label">铺底流动资金（万元）</label>
										      	<div class="layui-input-inline">
										        	<input type="text" name="fluidCapital" value="${deciPro.fluidCapital }" readonly="readonly" style="border:0px" class="layui-input">
										      	</div>
										    </div>
										    <div class="layui-inline">
										      	<label class="layui-form-label">工程建设其他费（万元）</label>
										      	<div class="layui-input-inline">
										        	<input type="text" name="otherCost" value="${deciPro.otherCost }" readonly="readonly" style="border:0px" class="layui-input">
										      	</div>
										    </div>
									    </div>
						  				<div class="layui-form-item">
										    <div class="layui-inline">
										    	<label class="layui-form-label">其中：征地拆迁费（万元）</label>
									      		<div class="layui-input-inline">
										      		<input type="text" name="moveOutCost" value="${deciPro.moveOutCost }" readonly="readonly" style="border:0px" class="layui-input">
									      		</div>
										    </div>
									    </div>
						  			</div>
						  		</fieldset>
							    <fieldset class="layui-elem-field layui-field-title fieldset"  id="creditInfo">
					  				<legend style="margin-left:40px;font-size:15px;font-weight:bold;">回报机制 ></legend>
						  			<div style="margin-top:20px">
						  				<div class="layui-form-item">
										    <div class="layui-inline">
										    	<label class="layui-form-label">回报机制</label>
									      		<div class="layui-input-inline">
										      		<input type="checkbox" disabled <c:if test="${fn:contains(deciPro.backMech, '1')}" >checked</c:if> title="政府付费" lay-skin="primary">
									      		</div>
									      		<div class="layui-input-inline">
													<input type="checkbox" disabled <c:if test="${fn:contains(deciPro.backMech, '2')}" >checked</c:if> title="可行性缺口补助" lay-skin="primary"> 
									      		</div>
									      		<div class="layui-input-inline">
													<input type="checkbox" disabled <c:if test="${fn:contains(deciPro.backMech, '3')}" >checked</c:if> title="使用者付费" lay-skin="primary"> 
									      		</div>
										    </div>
									    </div>
						  			</div>
						  		</fieldset>
						  		<fieldset class="layui-elem-field layui-field-title fieldset"  id="invoteInfo">
					  				<legend style="margin-left:40px;font-size:15px;font-weight:bold;">投标报价  ></legend>
						  			<div style="margin-top:20px">
						  				<div class="layui-form-item">
										    <div class="layui-inline">
										    	<label class="layui-form-label">建安下浮率（%）</label>
									      		<div class="layui-input-inline">
										      		<input type="text" name="quoteDownRate" value="${deciPro.quoteDownRate }" readonly="readonly" style="border:0px" class="layui-input">
									      		</div>
										    </div>
										    <div class="layui-inline">
										    	<label class="layui-form-label">合理利润率（%）</label>
									      		<div class="layui-input-inline">
										      		<input type="text" name="quoteProfitRate" value="${deciPro.quoteProfitRate }" readonly="readonly" style="border:0px" class="layui-input">
									      		</div>
										    </div>
										    <div class="layui-inline">
										    	<label class="layui-form-label">综合回报率（计划报价%）</label>
									      		<div class="layui-input-inline">
										      		<input type="text" name="quoteMultiRate" value="${deciPro.quoteMultiRate }" readonly="readonly" style="border:0px" class="layui-input">
									      		</div>
										    </div>
									    </div>
						  				<div class="layui-form-item">
										    <div class="layui-inline">
										    	<label class="layui-form-label">折现率（%）</label>
									      		<div class="layui-input-inline">
										      		<input type="text" name="quoteDiscountRate" value="${deciPro.quoteDiscountRate }" readonly="readonly" style="border:0px" class="layui-input">
									      		</div>
										    </div>
									    </div>
									    <c:forEach items="${deciPro.deciProQuotes }" var="quote" varStatus="status">
									  		<div class="layui-form-item">
									  			<div class="layui-inline width106">
											    	<p class="right">其他报价<label>${quote.orderIdx }</label>：</p>
											    </div>
											    <div class="layui-inline">
											    	<label class="layui-form-label width60">报价指标</label>
										      		<div class="layui-input-inline">
											      		<input type="text" name="itemName" value="${quote.itemName }" readonly="readonly" style="border:0px" class="layui-input">
										      		</div>
											    </div>
											    <div class="layui-inline">
											      	<label class="layui-form-label">指标数据</label>
											      	<div class="layui-input-inline">
											      		<input type="text" name="itemPercent" value="${quote.itemPercent }" readonly="readonly" style="border:0px" class="layui-input">
											      	</div>
											    </div>
										    </div>
									    </c:forEach>
						  			</div>
						  		</fieldset>
							    <fieldset class="layui-elem-field layui-field-title fieldset"  id="invoteProfitInfo">
					  				<legend style="margin-left:40px;font-size:15px;font-weight:bold;">投标利润  ></legend>
						  			<div style="margin-top:20px">
						  				<div class="layui-form-item">
										    <div class="layui-inline">
										    	<label class="layui-form-label">建安利润（万元）</label>
									      		<div class="layui-input-inline">
										      		<input type="text" name="caeProfit" value="${deciPro.caeProfit }" readonly="readonly" style="border:0px" class="layui-input">
									      		</div>
										    </div>
										    <div class="layui-inline">
										    	<label class="layui-form-label">财务利润（万元）</label>
									      		<div class="layui-input-inline">
										      		<input type="text" name="finProfit" value="${deciPro.finProfit }" readonly="readonly" style="border:0px" class="layui-input">
									      		</div>
										    </div>
										    <div class="layui-inline">
										    	<label class="layui-form-label">运营利润（万元）</label>
									      		<div class="layui-input-inline">
										      		<input type="text" name="omProfit" value="${deciPro.omProfit }" readonly="readonly" style="border:0px" class="layui-input">
									      		</div>
										    </div>
									    </div>
						  				<div class="layui-form-item">
										    <div class="layui-inline">
										    	<label class="layui-form-label">投标综合利润（万元）</label>
									      		<div class="layui-input-inline">
										      		<input type="text" name="bidProfit" value="${deciPro.bidProfit }" readonly="readonly" style="border:0px" class="layui-input">
									      		</div>
										    </div>
										    <div class="layui-inline">
										    	<label class="layui-form-label">综合利润率（%）</label>
									      		<div class="layui-input-inline">
										      		<input type="text" name="multiRate" value="${deciPro.multiRate }" readonly="readonly" style="border:0px" class="layui-input">
									      		</div>
										    </div>
										    <div class="layui-inline">
										    	<label class="layui-form-label">内部收益率（%）</label>
									      		<div class="layui-input-inline">
										      		<input type="text" name="innerRate" value="${deciPro.innerRate }" readonly="readonly" style="border:0px" class="layui-input">
									      		</div>
										    </div>
									    </div>
						  			</div>
						  		</fieldset>
						  	</div>
						</fieldset>
						<fieldset class="layui-elem-field layui-field-title fieldset"  id="creditInfo">
					  		<legend class="layui-btn layui-legend" style="text-align:left;cursor:default;">项目其他信息  ></legend>
						  	<div style="margin-top:20px">
						  		<div class="layui-form-item">
								    <div class="layui-inline">
								    	<label class="layui-form-label">初步融资方案（选填）</label>
							      		<div class="layui-input-inline">
								      		<textarea name="proFinPlan" readonly="readonly" class="layui-textarea" style="width:899px;height:90px;">${deciPro.proFinPlan}</textarea>
							      		</div>
								    </div>
							    </div>
						  		<div class="layui-form-item">
								    <div class="layui-inline">
								    	<label class="layui-form-label">项目风险（选填）</label>
							      		<div class="layui-input-inline">
								      		<textarea name="proRisk" readonly="readonly" class="layui-textarea" style="width:899px;height:90px;">${deciPro.proRisk}</textarea>
							      		</div>
								    </div>
							    </div>
						  		<div class="layui-form-item">
								    <div class="layui-inline">
								    	<label class="layui-form-label">其他说明（选填）</label>
							      		<div class="layui-input-inline">
								      		<textarea name="proOthers" readonly="readonly" class="layui-textarea" style="width:899px;height:90px;">${deciPro.proOthers}</textarea>
							      		</div>
								    </div>
							    </div>
						  	</div>
						</fieldset>
						<fieldset class="layui-elem-field layui-field-title fieldset" >
					  		<legend class="layui-btn layui-legend" style="text-align:left;cursor:default;">附件信息  ></legend>
							  	<div style="margin-top:20px;">
								    <div class="layui-form-item">
									    <label class="layui-form-label">标前承诺</label>
									    <div class="layui-input-block">
									    	<div class="layui-upload">
						                		<div class="layui-upload-list">
						                			<c:forEach items="${deciPro.deciProAtts }" var="fileAtt">
								              			<c:if test="${fileAtt.types == '31' }">
								              				<div class="layui-upload-img-div">
								              					<c:choose>
									              					<c:when test="${fileAtt.fileSuffix == '.jpg' or fileAtt.fileSuffix == '.jpeg' or fileAtt.fileSuffix == '.png'}">
										              					<img src="${fileHttpPre }/${fileAtt.filePath }" title="${fileAtt.fileName}" class="layui-upload-img">
										              				</c:when>
										              				<c:otherwise>
										              					<img src="${ctx}/resources/images/${fn:substring(fileAtt.fileSuffix,1,5)}.jpg" title="${fileAtt.fileName}" class="layui-upload-img">
										              				</c:otherwise>
								              					</c:choose>
								              					<div class="mask">
								              						<a href="javascript:void(0)" style="margin-left:32px" onclick="showImg('${fileHttpPre}/${fileAtt.filePath }');">查看</a>
								              					</div>
								              					<p>${fileAtt.fileName}</p>
								              				</div>
								              			</c:if>
								              		</c:forEach>
						                		</div>
								            </div>
									    </div>
								  	</div>
								    <div class="layui-form-item">
									    <label class="layui-form-label">居间合同</label>
									    <div class="layui-input-block">
									    	<div class="layui-upload">
						                		<div class="layui-upload-list">
						                			<c:forEach items="${deciPro.deciProAtts }" var="fileAtt">
								              			<c:if test="${fileAtt.types == '32' }">
								              				<div class="layui-upload-img-div">
								              					<c:choose>
									              					<c:when test="${fileAtt.fileSuffix == '.jpg' or fileAtt.fileSuffix == '.jpeg' or fileAtt.fileSuffix == '.png'}">
										              					<img src="${fileHttpPre }/${fileAtt.filePath }" title="${fileAtt.fileName}" class="layui-upload-img">
										              				</c:when>
										              				<c:otherwise>
										              					<img src="${ctx}/resources/images/${fn:substring(fileAtt.fileSuffix,1,5)}.jpg" title="${fileAtt.fileName}" class="layui-upload-img">
										              				</c:otherwise>
								              					</c:choose>
								              					<div class="mask">
								              						<a href="javascript:void(0)" style="margin-left:32px" onclick="showImg('${fileHttpPre}/${fileAtt.filePath }');">查看</a>
								              					</div>
								              					<p>${fileAtt.fileName}</p>
								              				</div>
								              			</c:if>
								              		</c:forEach>
						                		</div>
								            </div>
									    </div>
								  	</div>
								    <div class="layui-form-item">
									    <label class="layui-form-label">融资调研报告（选填）</label>
									    <div class="layui-input-block">
									    	<div class="layui-upload">
						                		<div class="layui-upload-list">
						                			<c:forEach items="${deciPro.deciProAtts }" var="fileAtt">
								              			<c:if test="${fileAtt.types == '33' }">
								              				<div class="layui-upload-img-div">
								              					<c:choose>
									              					<c:when test="${fileAtt.fileSuffix == '.jpg' or fileAtt.fileSuffix == '.jpeg' or fileAtt.fileSuffix == '.png'}">
										              					<img src="${fileHttpPre }/${fileAtt.filePath }" title="${fileAtt.fileName}" class="layui-upload-img">
										              				</c:when>
										              				<c:otherwise>
										              					<img src="${ctx}/resources/images/${fn:substring(fileAtt.fileSuffix,1,5)}.jpg" title="${fileAtt.fileName}" class="layui-upload-img">
										              				</c:otherwise>
								              					</c:choose>
								              					<div class="mask">
								              						<a href="javascript:void(0)" style="margin-left:32px" onclick="showImg('${fileHttpPre}/${fileAtt.filePath }');">查看</a>
								              					</div>
								              					<p>${fileAtt.fileName}</p>
								              				</div>
								              			</c:if>
								              		</c:forEach>
						                		</div>
								            </div>
									    </div>
								  	</div>
								    <div class="layui-form-item">
									    <label class="layui-form-label">运营调研报告（选填）</label>
									    <div class="layui-input-block">
									    	<div class="layui-upload">
						                		<div class="layui-upload-list">
						                			<c:forEach items="${deciPro.deciProAtts }" var="fileAtt">
								              			<c:if test="${fileAtt.types == '34' }">
								              				<div class="layui-upload-img-div">
								              					<c:choose>
									              					<c:when test="${fileAtt.fileSuffix == '.jpg' or fileAtt.fileSuffix == '.jpeg' or fileAtt.fileSuffix == '.png'}">
										              					<img src="${fileHttpPre }/${fileAtt.filePath }" title="${fileAtt.fileName}" class="layui-upload-img">
										              				</c:when>
										              				<c:otherwise>
										              					<img src="${ctx}/resources/images/${fn:substring(fileAtt.fileSuffix,1,5)}.jpg" title="${fileAtt.fileName}" class="layui-upload-img">
										              				</c:otherwise>
								              					</c:choose>
								              					<div class="mask">
								              						<a href="javascript:void(0)" style="margin-left:32px" onclick="showImg('${fileHttpPre}/${fileAtt.filePath }');">查看</a>
								              					</div>
								              					<p>${fileAtt.fileName}</p>
								              				</div>
								              			</c:if>
								              		</c:forEach>
						                		</div>
								            </div>
									    </div>
								  	</div>
								    <div class="layui-form-item">
									    <label class="layui-form-label">招商调研报告（选填）</label>
									    <div class="layui-input-block">
									    	<div class="layui-upload">
						                		<div class="layui-upload-list">
						                			<c:forEach items="${deciPro.deciProAtts }" var="fileAtt">
								              			<c:if test="${fileAtt.types == '35' }">
								              				<div class="layui-upload-img-div">
								              					<c:choose>
									              					<c:when test="${fileAtt.fileSuffix == '.jpg' or fileAtt.fileSuffix == '.jpeg' or fileAtt.fileSuffix == '.png'}">
										              					<img src="${fileHttpPre }/${fileAtt.filePath }" title="${fileAtt.fileName}" class="layui-upload-img">
										              				</c:when>
										              				<c:otherwise>
										              					<img src="${ctx}/resources/images/${fn:substring(fileAtt.fileSuffix,1,5)}.jpg" title="${fileAtt.fileName}" class="layui-upload-img">
										              				</c:otherwise>
								              					</c:choose>
								              					<div class="mask">
								              						<a href="javascript:void(0)" style="margin-left:32px" onclick="showImg('${fileHttpPre}/${fileAtt.filePath }');">查看</a>
								              					</div>
								              					<p>${fileAtt.fileName}</p>
								              				</div>
								              			</c:if>
								              		</c:forEach>
						                		</div>
								            </div>
									    </div>
								  	</div>
								    <div class="layui-form-item">
									    <label class="layui-form-label">当地PPP项目调研报告（选填）</label>
									    <div class="layui-input-block">
									    	<div class="layui-upload">
						                		<div class="layui-upload-list">
						                			<c:forEach items="${deciPro.deciProAtts }" var="fileAtt">
								              			<c:if test="${fileAtt.types == '36' }">
								              				<div class="layui-upload-img-div">
								              					<c:choose>
									              					<c:when test="${fileAtt.fileSuffix == '.jpg' or fileAtt.fileSuffix == '.jpeg' or fileAtt.fileSuffix == '.png'}">
										              					<img src="${fileHttpPre }/${fileAtt.filePath }" title="${fileAtt.fileName}" class="layui-upload-img">
										              				</c:when>
										              				<c:otherwise>
										              					<img src="${ctx}/resources/images/${fn:substring(fileAtt.fileSuffix,1,5)}.jpg" title="${fileAtt.fileName}" class="layui-upload-img">
										              				</c:otherwise>
								              					</c:choose>
								              					<div class="mask">
								              						<a href="javascript:void(0)" style="margin-left:32px" onclick="showImg('${fileHttpPre}/${fileAtt.filePath }');">查看</a>
								              					</div>
								              					<p>${fileAtt.fileName}</p>
								              				</div>
								              			</c:if>
								              		</c:forEach>
						                		</div>
								            </div>
									    </div>
								  	</div>
								    <div class="layui-form-item">
									    <label class="layui-form-label">招标文件（选填）</label>
									    <div class="layui-input-block">
									    	<div class="layui-upload">
						                		<div class="layui-upload-list">
						                			<c:forEach items="${deciPro.deciProAtts }" var="fileAtt">
								              			<c:if test="${fileAtt.types == '37' }">
								              				<div class="layui-upload-img-div">
								              					<c:choose>
									              					<c:when test="${fileAtt.fileSuffix == '.jpg' or fileAtt.fileSuffix == '.jpeg' or fileAtt.fileSuffix == '.png'}">
										              					<img src="${fileHttpPre }/${fileAtt.filePath }" title="${fileAtt.fileName}" class="layui-upload-img">
										              				</c:when>
										              				<c:otherwise>
										              					<img src="${ctx}/resources/images/${fn:substring(fileAtt.fileSuffix,1,5)}.jpg" title="${fileAtt.fileName}" class="layui-upload-img">
										              				</c:otherwise>
								              					</c:choose>
								              					<div class="mask">
								              						<a href="javascript:void(0)" style="margin-left:32px" onclick="showImg('${fileHttpPre}/${fileAtt.filePath }');">查看</a>
								              					</div>
								              					<p>${fileAtt.fileName}</p>
								              				</div>
								              			</c:if>
								              		</c:forEach>
						                		</div>
								            </div>
									    </div>
								  	</div>
								    <div class="layui-form-item">
									    <label class="layui-form-label">PPP合同范本</label>
									    <div class="layui-input-block">
									    	<div class="layui-upload">
						                		<div class="layui-upload-list">
						                			<c:forEach items="${deciPro.deciProAtts }" var="fileAtt">
								              			<c:if test="${fileAtt.types == '38' }">
								              				<div class="layui-upload-img-div">
								              					<c:choose>
									              					<c:when test="${fileAtt.fileSuffix == '.jpg' or fileAtt.fileSuffix == '.jpeg' or fileAtt.fileSuffix == '.png'}">
										              					<img src="${fileHttpPre }/${fileAtt.filePath }" title="${fileAtt.fileName}" class="layui-upload-img">
										              				</c:when>
										              				<c:otherwise>
										              					<img src="${ctx}/resources/images/${fn:substring(fileAtt.fileSuffix,1,5)}.jpg" title="${fileAtt.fileName}" class="layui-upload-img">
										              				</c:otherwise>
								              					</c:choose>
								              					<div class="mask">
								              						<a href="javascript:void(0)" style="margin-left:32px" onclick="showImg('${fileHttpPre}/${fileAtt.filePath }');">查看</a>
								              					</div>
								              					<p>${fileAtt.fileName}</p>
								              				</div>
								              			</c:if>
								              		</c:forEach>
						                		</div>
								            </div>
									    </div>
								  	</div>
								    <div class="layui-form-item">
									    <label class="layui-form-label">投资测算表（选填）</label>
									    <div class="layui-input-block">
									    	<div class="layui-upload">
						                		<div class="layui-upload-list">
						                			<c:forEach items="${deciPro.deciProAtts }" var="fileAtt">
								              			<c:if test="${fileAtt.types == '39' }">
								              				<div class="layui-upload-img-div">
								              					<c:choose>
									              					<c:when test="${fileAtt.fileSuffix == '.jpg' or fileAtt.fileSuffix == '.jpeg' or fileAtt.fileSuffix == '.png'}">
										              					<img src="${fileHttpPre }/${fileAtt.filePath }" title="${fileAtt.fileName}" class="layui-upload-img">
										              				</c:when>
										              				<c:otherwise>
										              					<img src="${ctx}/resources/images/${fn:substring(fileAtt.fileSuffix,1,5)}.jpg" title="${fileAtt.fileName}" class="layui-upload-img">
										              				</c:otherwise>
								              					</c:choose>
								              					<div class="mask">
								              						<a href="javascript:void(0)" style="margin-left:32px" onclick="showImg('${fileHttpPre}/${fileAtt.filePath }');">查看</a>
								              					</div>
								              					<p>${fileAtt.fileName}</p>
								              				</div>
								              			</c:if>
								              		</c:forEach>
						                		</div>
								            </div>
									    </div>
								  	</div>
								    <div class="layui-form-item">
									    <label class="layui-form-label">其他资料（选填）</label>
									    <div class="layui-input-block">
									    	<div class="layui-upload">
						                		<div class="layui-upload-list">
						                			<c:forEach items="${deciPro.deciProAtts }" var="fileAtt">
								              			<c:if test="${fileAtt.types == '40' }">
								              				<div class="layui-upload-img-div">
								              					<c:choose>
									              					<c:when test="${fileAtt.fileSuffix == '.jpg' or fileAtt.fileSuffix == '.jpeg' or fileAtt.fileSuffix == '.png'}">
										              					<img src="${fileHttpPre }/${fileAtt.filePath }" title="${fileAtt.fileName}" class="layui-upload-img">
										              				</c:when>
										              				<c:otherwise>
										              					<img src="${ctx}/resources/images/${fn:substring(fileAtt.fileSuffix,1,5)}.jpg" title="${fileAtt.fileName}" class="layui-upload-img">
										              				</c:otherwise>
								              					</c:choose>
								              					<div class="mask">
								              						<a href="javascript:void(0)" style="margin-left:32px" onclick="showImg('${fileHttpPre}/${fileAtt.filePath }');">查看</a>
								              					</div>
								              					<p>${fileAtt.fileName}</p>
								              				</div>
								              			</c:if>
								              		</c:forEach>
						                		</div>
								            </div>
									    </div>
								  	</div>
							  	</div>
						</fieldset>
					</form>
					<!-- 务表单数据显示  -->
	                </div>
	                <!-- 引入公共流程渲染页面   -->
	                <%@ include file="../include/flowPublic.jsp"%>
	              </div>
	            </div>
	          </div>
	        </div>
			<!-- 审批时 显示 通过/拒绝按钮   -->
			<c:if test="${'y'==processDealWith}">
			<fieldset class="layui-elem-field layui-field-title fieldset" style="text-align:center;">
				<div class="layui-form-item">
					<div class="layui-input-block">
			      		<input class="layui-btn layuiadmin-btn-admin layui-btn-normal " style="margin-top:6px;" type="button" data-type="to_pass_submit" id="to_pass_submit" value="审批通过">
			      		<input class="layui-btn layuiadmin-btn-admin layui-btn-primary " style="margin-top:6px;" type="button" data-type="to_refuse_submit" id="to_refuse_submit" value="审批终止">
			      	</div>
			    </div>
		    </fieldset>
		    </c:if>
			<!-- 审批意见  -->
    		<form class="layui-form" id="flow_process_form" style="display:none">
				<input type="hidden" name="state" id="flow_process_form_state"/>
				<input type="hidden" name="srcBizSguid" value="${deciPro.id }" />
				<input type="hidden" name="processId" value="${deciPro.processId }" />
				<div class="layui-form-item" style="padding-top:10px">
			      	<label class="layui-form-label" >审批结果</label>
			      	<div class="layui-input-inline">
			      		<input type="text"  style="border:0px;" readonly="readonly" class="layui-input" id="flow_process_form_state_txt">
			      	</div>
			    </div>
				<div class="layui-form-item" style="padding-top:10px">
			      	<label class="layui-form-label" >审批意见</label>
			      	<div class="layui-input-inline">
			        	<textarea name="dealIdea" placeholder="请输入审批意见" lay-verify="required" class="layui-textarea" style="width:475px;height:145px;"></textarea>
			      	</div>
			    </div>
			  	<div class="layui-form-item" style="margin-top:10px;">
			      	<label class="layui-form-label">附件</label>
			      	<div class="layui-input-block">
			      		<div class="layui-upload">
			              	<button type="button" class="layui-btn" id="upload-more">上传</button>
		              		<div class="layui-upload-list" id="upload-more-list">
		              		</div>
		            	</div> 
			      	</div>
			    </div>
			    <div class="layui-form-item layui-hide">
			      <input type="button" lay-submit lay-filter="flow_process_from_submit" id="flow_process_from_submit" value="确认">
			    </div>
			</form>
  		</div>
	</div>
</div>
  <script>
  	layui.config({
	    base: '${ctx}/resources/layuiadmin/' //静态资源所在路径
	  }).extend({
	    index: 'lib/index' //主入口模块
	  }).use(['index', 'table', 'set', 'transfer', 'upload'], function(){
	    var $ = layui.$
	    ,upload = layui.upload
	    ,table = layui.table
	    ,form = layui.form;
	    
	    upload.render({
	      elem: '#upload-more'
	      ,url: basePath + '/flowProcess/uploadAtt/'
	      ,multiple: true
	      ,accept: 'file'
	      ,acceptMime: 'application/zip,application/x-rar-compressed,image/jpeg,image/png,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.ms-powerpoint,application/vnd.openxmlformats-officedocument.presentationml.presentation,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/pdf'
	   	  ,before: function(obj){ //obj参数包含的信息
	   		    layer.load(); //上传loading
	   		  }
	      ,done: function(res){
	    	  //如果上传失败
	          if(res.code > 0){
	        	  layer.closeAll('loading'); //关闭loading
	        	  return layer.msg(res.msg,{icon: 7});
	          }
	          //上传完毕
	   	  	  if(res.entity != null && res.entity.length > 0){
				for(var i in res.entity){
					var askBillAtt = res.entity[i];
					var arr = askBillAtt.split("|");
					var imgSrc = "";
					var suffix = arr[0].substring(arr[0].lastIndexOf(".")+1,arr[0].length);
					if(suffix == 'jpg' || suffix == 'png'){
						imgSrc = "${fileHttpPre}/"+arr[2];
					}else{
						imgSrc = "${ctx}/resources/images/"+suffix+".jpg";
					}
	        		$('#upload-more-list').append('<div class="layui-upload-img-div" id="upload_img_'+arr[1]+'"><img src="'+imgSrc+'" title="'+ arr[0] +'" class="layui-upload-img"><div class="mask"><a href="javascript:void(0)" onclick="showImg(\''+"${fileHttpPre}"+arr[2] +'\');">查看</a><a href="javascript:void(0)" onclick="del(\''+arr[1]+'\')";>删除</a></div><p>'+arr[0]+'</p><input type="hidden" value="'+askBillAtt+'" id="fileAtt_'+arr[1]+'" name="fileAtt" ></input></div> ');
				}
		  	  }
	      }
	      ,allDone: function(obj){ //当文件全部被提交后，才触发
	    	  layer.closeAll('loading'); //关闭loading
	      }
	      ,error: function(){
	    	  layer.closeAll('loading'); //关闭loading
	          //上传失败
	          layer.msg("上传失败，请稍后再试~",{icon: 7});
	        }
	    });
	    	  	
	 	// 按钮事件
	    var active = {
	    	to_pass_submit: function(){
	    	  $('#flow_process_form_state').val("1");	
	    	  $('#flow_process_form_state_txt').val("审批通过");	
	          layer.open({
	        	  type: 1
	        	  ,title: '审批通过确认'
	        	  ,content: $('#flow_process_form')
	        	  ,area: layui.admin.screen() < 2 ? ['80%', '460px'] : ['820px','460px']
	        	  ,btn: ['确定', '取消']
	        	  ,btnAlign: 'c'
	        	  ,yes: function(index, layero){
	        		  var submitID = 'flow_process_from_submit'
	            		,submit = layero.contents().find('#'+ submitID);
	        		  //监听提交
	        		  form.on('submit('+ submitID +')', function(data){
	        			var field = data.field; //获取提交的字段
        		  		layer.load();
        		       	//提交 Ajax 成功后，静态更新表格中的数据
        		       	$.ajax({
        		           	type : 'post',
        					url : basePath + "/flowProcess/dealWith",
        					data: $('#flow_process_form').serialize(),
        					success:function(result){
        						if(result.success){
        							layer.closeAll('loading'); //关闭loading
        							layer.msg('处理成功~',{icon: 1});
        							//两秒后关闭当前页面
        							setTimeout(function(){
        								// 刷新首页 
        								var iframe = window.parent.layui.admin.tabsBody(0).find(".layadmin-iframe");
        								iframe[0].contentWindow.location.reload(true);
        								top.layui.admin.closeThisTabs(); // 关闭当前标签页
        						        }, 2000);
        						}else{
        							layer.closeAll('loading'); //关闭loading
        							layer.msg(result.msg,{icon: 7});
        					  	}
        					}
        		       	});
	            	});  
	            submit.trigger('click');
	          }
	        }); 
	      },
	      to_refuse_submit: function(){
	    	  $('#flow_process_form_state').val("0");
	    	  $('#flow_process_form_state_txt').val("审批终止");
	          layer.open({
	        	  type: 1
	        	  ,title: '审批终止确认'
	        	  ,content: $('#flow_process_form')
	        	  ,area: layui.admin.screen() < 2 ? ['80%', '460px'] : ['820px','460px']
	        	  ,btn: ['确定', '取消']
	        	  ,btnAlign: 'c'
	        	  ,yes: function(index, layero){
	        		  var submitID = 'flow_process_from_submit'
	            		,submit = layero.contents().find('#'+ submitID);
	        		  //监听提交
	        		  form.on('submit('+ submitID +')', function(data){
	        			var field = data.field; //获取提交的字段
      		  		layer.load();
      		       	//提交 Ajax 成功后，静态更新表格中的数据
      		       	$.ajax({
      		           	type : 'post',
      					url : basePath + "/flowProcess/dealWith",
      					data: $('#flow_process_form').serialize(),
      					success:function(result){
      						if(result.success){
      							layer.closeAll('loading'); //关闭loading
      							layer.msg('处理成功~',{icon: 1});
      							//两秒后关闭当前页面
      							setTimeout(function(){
      								// 刷新首页 
      								var iframe = window.parent.layui.admin.tabsBody(0).find(".layadmin-iframe");
      								iframe[0].contentWindow.location.reload(true);
      								top.layui.admin.closeThisTabs(); // 关闭当前标签页
      						        }, 2000);
      						}else{
      							layer.closeAll('loading'); //关闭loading
      							layer.msg(result.msg,{icon: 7});
      					  	}
      					}
      		       	});
	            	});  
	            submit.trigger('click');
	          }
	        }); 
	      }
	    }  
	    // data-type事件
	    $('.layui-btn.layuiadmin-btn-admin').on('click', function(){
	      var type = $(this).data('type');
	      active[type] ? active[type].call(this) : '';
	    });
	  	
	  });
  
	//删除文件
	function del(index){
		layui.$("#fileAtt_"+index).remove();
		layui.$("#upload_img_"+index).remove();
	}

	//根据url查看文件
	function showImg(url){
		var openWin = window.open(url,'','left=410,height=768, width=1024, top=200,  toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no');
	}
	
	
  </script>
</body>
</html>

